User loginNavigation |
LtU Forum, Site DiscussionML without GCI'm in the mood to develop an ML like language for small microcontrollers :-) [Fun, crass] The Daily WTFIf LtU is the zenith of PL discussion, the nadir might be The Daily WTF (where Whiskey Tango Foxtrot decodes from the phonetic alphabet to a vulgar interrogative). A software engineering problem: how would functional programming solve it?Here is a simple software engineering problem that I have encountered the last few days. It's not something dramatic, but one that has made me stop development in search of elegant solutions. I am posting this here because I would like to see how functional programming languages would solve this problem. Here is the problem: I am writing a GUI toolkit that reuses the Win32 API wrapped up in a set of C++ classes (the reason is that there is no GUI library that completely hides Win32 will reusing it - existing libraries either follow Win32 logic (ala WxWidgets) or provide their own implementation (ala Qt/Swing)). As you may know, Win32 is not object-oriented, nor does it have a well thought out/consistent interface. For example, although the menu bar is a screen object, it is not a window: all there is is a bunch of functions for creating a menu, redrawing it, adding menu items etc. But I want to have menus and other non-window Win32 items as widgets in the toolkit, for consistency reasons. The problem lies in the organization of classes. I have 4 types of widgets:
The object-oriented design solutions would be:
So what I am asking is how functional programming languages solve an issue like the above, which is an issue of code organization/clarity/reuse/taxonomy. I can't seem to find a good object-oriented solution to the problem, nor any of my colleagues/friends can. So I am asking if other programming paradigms have a better solution for this problem. 4-color theorem The only correct, simple and elegant proof of The 4-color theorem is a well-known math problem Sincerely Dear Dr. Cui Shitai: Thank you for considering the Journal. Yours sincerely, Nick Wormald Dear professor Software Re-engineering Techniques and Reverse Engineering of Object-oriented Code ( Java language)I am working on this .... 1- Sofwtare Re-engineering Techniques THanks Type and Effects systems and Lucassen's ThesisI'm chasing references for type and effect systems, from the first papers by Gifford and Lucassen. One of the references is Lucassen's PhD thesis, "Types and Effects towards the Integration of Functional and Imperative Programming", Technical Report MIT-LCS-TR-408; it has a page at MIT here. I was hoping to find this thesis in electronic format, but my searches didn't reveal nothing. I searched for the homepage of the author too, with no better results. Does anyone know if this TR is online ? Lazy linear algebraLazy Linear Algebra I wonder if any of the LtU readers would be able to advise me about (posted for Chris Rose) Kay no longer at HPJst so you know. By Ehud Lamm at 2005-07-24 05:59 | LtU Forum | login or register to post comments | other blogs | 5984 reads
Concerning introspection and compilation.My knowledge in the area of languages is limited, that is why I am always visiting this site. Some of the papers, and terminology are very helpful and give me many 'over-my-head' interesting reads, so to the editors and commentors you have my thanks for the education. I don't have a detailed grasp on introspection but I feel I have enough knowledge to appreciate its practicality. My main question arises from a seperation I see, in dealing with introspection, between so-called compiled languages like C, and C++, and dynamic languages like Python and Ruby. Does a language make sacrifices to gain the ability to introspect? And if so, what kind of sacrifices does it have to make? Can a languages like C or C++ gain introspection? Though I guess the ultimate question would be, would languages like C and C++, and in turn their programmers, gain anything substantial from introspection? I am sorry if my question is not completely clear, so please prod me with questions if the questions need to be refined for better answers. Regards, MJ Stahl The Limits of the Semantic Extensibility of Computer ProgramsI'm curious if there have been studies on the limits of semantic extensibility by computer programs. I'm not entirely sure how to phrase exactly what I mean. It's kind of like "what are the limits to how much 'environmental extensibility' a computer program can have?" I imagine the answer is related to type theory, somewhere along the lines of it being limitted based on predefined type information, but I'm not quite sure where to start looking. This type of information would be useful when building models and meta-models, to know when "architectural astronauting" (to use a Spolsky term) isn't going to get you any more real benefits, anyway. Sorry for the confused question. The concepts are a bit confused in my mind. Which is why I brought it here, because I imagine some of you know if anyone has done work in this area. |
Browse archives
Active forum topics |
Recent comments
9 weeks 3 days ago
9 weeks 3 days ago
9 weeks 4 days ago
9 weeks 4 days ago
10 weeks 1 day ago
10 weeks 1 day ago
10 weeks 2 days ago
10 weeks 2 days ago
10 weeks 2 days ago
10 weeks 2 days ago